package com.yao.item.vo;



import com.yao.item.validator.IsMobile;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**

 */
@Data
public class LoginVo {

    @NotNull
    @IsMobile  //因为框架没有校验手机格式注解，所以自己定义
    private String mobile;

    @NotNull
    private String password;



    @Override
    public String toString() {
        return "LoginVo{" +
                "mobile='" + mobile + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
